package com.book.workbench.service;

import com.book.settings.pojo.User;
import com.book.workbench.pojo.Book;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookService {

    public Integer addBook(Book book);

    public Integer deleteBookById(Book book);

    public PageInfo<Book> getListBook(Book book);
    public Integer getCountListBook(Book book);

    public Integer updateBookById(Book book);

    public Integer updateBookExist(String book_id,String exist);

    public Integer searchBookIsExist(String book_id);

    public PageInfo<Book> getListBookBy(Book book);
    public Integer getCountListBookBy(Book book);

    public User getUserByAct(String act);

    public List<Book> searchUserNotReturnBook(String user_id);

    public PageInfo<Book> getListAllBook(Book book);
    public Integer getCountListAllBook(Book book);

    public Book searchBookById(String id);

}
